﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using log4net;

[assembly: log4net.Config.XmlConfigurator(Watch = true)]

namespace LINQtoNHibernateMVC.Web {
	// Note: For instructions on enabling IIS6 or IIS7 classic mode, 
	// visit http://go.microsoft.com/?LinkId=9394801

	public class MvcApplication : System.Web.HttpApplication {
		private static readonly ILog _logger =
		   LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

		protected void Application_Start() {
			//_logger.Info("Starting test series");

			BootStrapper.RegisterIoC();
			BootStrapper.RegisterIoCControllerFactory();
			BootStrapper.RegisterRoutes(RouteTable.Routes);
		}
	}
}